package cn.itcast.user.Userdao;

import cn.itcast.user.domain.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFallback implements UserFeignClient {
    @Override
    public User queryUserById(Long id) {
       User user=new User();
       user.setId(id);
       user.setName("用户查询异常");
       return user;
    }
}
